package com.yimi.yinhepda.entity.request;

import com.pda.ym.utils.StringUtils;
import com.yimi.yinhepda.utils.UcWaybillValidate;

/**
 * 托盘绑定请求实体
 *
 * @author 000432
 * @date 2018/6/27 0027
 */

public class ForkliftDetailVos {
    /**
     * 运单号
     */
    private String waybillNo;
    /**
     * 运单子单号
     */
    private String childWaybillNo;
    /**
     * 库区
     */
    private String areaCode;
    /**
     * 下一站编码
     */
    private String nextDeptCode;
    /**
     * 下一站名称
     */
    private String nextDept;
    /**
     * 输入方式 1-PDA扫描输入,2-手动输入
     */
    private Integer inputType;
    /**
     * 托盘任务号
     */
    private String forkliftNo;
    /**
     * 分货扫描类型： 1-人工分货 ,2-叉车分货
     */
    private Integer scanType;
    /**
     * 绑定标识 1-第一次绑定 2-第二次绑定
     */
    private Integer cancleStatu;
    /**
     * 配载单号
     */
    private String stowageNo;
    /**
     * 扫描时间
     */
    private String operTime;
    /**
     * 装卸车类型 1 -装车，2- 卸车，11- 撤销装车扫描
     */
    private Integer operTypeCode;
    /**
     * 1.托盘绑定，2-单独绑定，托盘绑定限制重复绑定，单独绑定取消该限制
     */
    private Integer bandType;
    /**
     * 类型，1快运，2快递
     */
    private Integer type;

    public ForkliftDetailVos() {
    }

    public Integer getWaybillNoType() {
        if (waybillNo != null) {
            if (StringUtils.isWaybillNo(waybillNo)) {
                //快运单号
                return 1;
            } else if (UcWaybillValidate.validate(waybillNo)) {
                //快递单号
                return 2;
            } else {
                return null;
            }
        } else {
            return null;
        }
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getBandType() {
        return bandType;
    }

    public void setBandType(Integer bandType) {
        this.bandType = bandType;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public String getChildWaybillNo() {
        return childWaybillNo;
    }

    public void setChildWaybillNo(String childWaybillNo) {
        this.childWaybillNo = childWaybillNo;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getNextDeptCode() {
        return nextDeptCode;
    }

    public void setNextDeptCode(String nextDeptCode) {
        this.nextDeptCode = nextDeptCode;
    }

    public String getNextDept() {
        return nextDept;
    }

    public void setNextDept(String nextDept) {
        this.nextDept = nextDept;
    }

    public Integer getInputType() {
        return inputType;
    }

    public void setInputType(Integer inputType) {
        this.inputType = inputType;
    }

    public String getForkliftNo() {
        return forkliftNo;
    }

    public void setForkliftNo(String forkliftNo) {
        this.forkliftNo = forkliftNo;
    }

    public Integer getScanType() {
        return scanType;
    }

    public void setScanType(Integer scanType) {
        this.scanType = scanType;
    }

    public Integer getCancleStatu() {
        return cancleStatu;
    }

    public void setCancleStatu(Integer cancleStatu) {
        this.cancleStatu = cancleStatu;
    }

    public String getStowageNo() {
        return stowageNo;
    }

    public void setStowageNo(String stowageNo) {
        this.stowageNo = stowageNo;
    }

    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }

    public Integer getOperTypeCode() {
        return operTypeCode;
    }

    public void setOperTypeCode(Integer operTypeCode) {
        this.operTypeCode = operTypeCode;
    }
}
